package edu.ustb.sql.sleuth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @author ShiZhe
 * @create 2020-07-26 21:27
 */
@SpringBootApplication
@EntityScan("edu.ustb.sql.sleuth.entity")
//激活eurekaClient
@EnableEurekaClient
//@EnableDiscoveryClient
public class SqlApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(SqlApplication.class,args);
    }
}
